package com.guo.pet_store.controller;

import com.guo.pet_store.admin.pojo.Pet;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class testController {
    @GetMapping("/test")
    @ResponseBody
    public Pet getPet(){
        Pet pet = new Pet();
        pet.setOnSale(true);
        pet.setMale('雌');
        pet.setName("test");
        return pet;
    }
}
